package com.ebring.shareEducation.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "trade_records")
public class Traderecords implements Serializable {

    @Id
    // 自增ID
    private String id;

    // 市场ID
    private String markId;

    // 买方id
    private String buyId;

    // 卖方ID
    private String sellId;

    // 成交价格
    private BigDecimal price;

    // 成交数量
    private BigDecimal count;

    // 成交金额
    private BigDecimal sum;

    // 买方手续费
    private BigDecimal buyFee;

    // 卖方手续费
    private BigDecimal sellFee;

    // 交易类型：买入、卖出
    private String type;

    // 成交时间
    private String time;

    // 买方委托IDD
    private String buyEntrustId;

    // 卖方委托ID
    private String sellEntrustId;


    // 备用字段1
    private String remark1;

    // 备用字段2
    private String remark2;

    // 备用字段3
    private String remark3;


}
